package com.hu.network.http.request;

import java.util.Map;

import com.hu.network.http.request.method.GetMethod;
import okhttp3.Request;

/**
 * 说明：
 *
 * @author ： hucanhua
 * @date ： 2017/10/26
 */
public abstract class BaseGetHttpRequest<T> extends BaseHttpRequest<T> {
    public BaseGetHttpRequest(ProgressCallback requestCallback, ProgressCallback responseCallback) {
        super(requestCallback, responseCallback);
    }

    protected abstract Map<String, Object> getParams() throws IllegalAccessException;

    @Override
    protected final Request getRequest() throws IllegalAccessException {
        return new GetMethod(getTag(),getUrl(), getParams()).getRequest();
    }
}
